<%@ page import="service.RainQualityService" %>
<%@ page import="service.impl.RainQualityServiceImpl" %>
<%@ page import="entity.Rainquality" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2024/6/24
  Time: 上午 10:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
  request.setCharacterEncoding("UTF-8");
  response.setCharacterEncoding("UTF-8");
  response.setContentType("text/html;charset=UTF-8");
  String contextpath= request.getContextPath();
  RainQualityService rainQualityService=new RainQualityServiceImpl();
  String opr=request.getParameter("opr");
  if ("getAll".equals(opr)){
    List<Rainquality> list=rainQualityService.getAll();
    application.removeAttribute("list");
    application.setAttribute("list",list);
    response.sendRedirect(contextpath+"/pages/index.jsp");
    return;
  }
%>
</body>
</html>
